package com.atguigu.gmall.seckill;

import com.atguigu.gmall.common.anno.EnableThreadPool;
import com.atguigu.gmall.rabbit.anno.EnableRabbit;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan(basePackages = "com.atguigu.gmall.seckill.mapper")
@EnableScheduling  //开启定时任务的
@EnableThreadPool
@EnableRabbit
@EnableFeignClients(basePackages = {
        "com.atguigu.gmall.common.feign.order"
})
public class SeckillApplication {

    public static void main(String[] args) {
        SpringApplication.run(SeckillApplication.class , args) ;
    }

}
